package com.tbit.main.dao.core;

import com.tbit.main.pojo.BmsBattery;
import com.tbit.main.pojo.BmsBatteryHealthMsg;
import com.tbit.main.pojo.BmsHealthGroup;
import com.tbit.main.pojo.BmsStat;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author LMY
 * @create 2022-07-18 11:56
 */
public interface BmsBatteryDao {

    List<BmsBattery> getBattery(BmsStat bmsStat);

    List<BmsBatteryHealthMsg> getBatteryMsg(BmsStat bmsStat);

    /**
     * 电池健康度
     *
     * @return
     */
    List<BmsHealthGroup> getHealth(BmsStat bmsStat);

    void insert(BmsBattery bmsBattery);

    List<BmsBattery> getBatch(Integer batch);

    /**
     * 修改处理
     */
    void updateHandle(@Param("batteryNOs") String batteryNOs);

    List<BmsBattery> getBatteryNOs(@Param("batteryNOs") String batteryNOs);

    void insertBatch(List<BmsBattery> batteryBatch);

    void delete(@Param("batteryNO") String batteryNO);


}
